package cn.hackcloud.designpattern.mediator;

public class Alarm extends Colleague {

	public Alarm(String name, Mediator mediator) {
		super(name, mediator);
		mediator.register(name, this);
	}

	@Override
	void sendMessage(int stateChange) {
		this.getMediator().getMessage(stateChange, name);
	}

}
